//package com.hk.blog.domain.es;
//
//import com.hk.commons.util.date.DateTimeUtils;
//import com.hk.core.elasticsearch.analyzer.IKanalyzer;
//import com.hk.core.elasticsearch.domain.AbstractIDPersistable;
//import lombok.Data;
//import lombok.EqualsAndHashCode;
//import lombok.experimental.Accessors;
//import org.springframework.data.elasticsearch.annotations.DateFormat;
//import org.springframework.data.elasticsearch.annotations.Document;
//import org.springframework.data.elasticsearch.annotations.Field;
//import org.springframework.data.elasticsearch.annotations.FieldType;
//
//import java.time.LocalDateTime;
//
///**
// * 文章
// */
//@Data
//@EqualsAndHashCode(callSuper = true)
//@Accessors(chain = true)
//@Document(indexName = "article_info")
//public class EsArticleInfo extends AbstractIDPersistable {
//
//    @Field(type = FieldType.Long, fielddata = true)
//    private Long userId;
//
//    @Field(type = FieldType.Long, fielddata = true)
//    private Long categoryId;
//
//    @Field(type = FieldType.Integer)
//    private Integer browseNum;
//
//    @Field(type = FieldType.Text,
//            analyzer = IKanalyzer.IK_MAX_WORD_ANALYZER,
//            searchAnalyzer = IKanalyzer.IK_MAX_WORD_ANALYZER)
//    private String title;
//
//    @Field(type = FieldType.Text,
//            analyzer = IKanalyzer.IK_MAX_WORD_ANALYZER,
//            searchAnalyzer = IKanalyzer.IK_MAX_WORD_ANALYZER)
//    private String content;
//
//    @Field(type = FieldType.Date, fielddata = true, pattern = DateTimeUtils.YYYY_MM_DD_HH_MM_SS, format = DateFormat.date_time)
//    private LocalDateTime lastModifiedDate;
//
//    public LocalDateTime getLastUpdateDate() {
//        return lastModifiedDate;
//    }
//}
